package com.xzy.Service;

import com.xzy.dao.LoginUserDao;
import com.xzy.pojo.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginUserServiceImpl implements LoginUserService {
    @Autowired
    LoginUserDao loginUserDao;

    @Override
    public LoginUser findByNameAndPhone(String name, String phone) {
        return loginUserDao.findByNameAndPhone(name, phone);
    }

    @Override
    public <S extends LoginUser> S save(S s) {
        return loginUserDao.save(s);
    }

    @Override
    public LoginUser findByName(String name) {
        return loginUserDao.findByName(name);
    }
}
